home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Future Workshop
/
Future Workshop.iso
/
multimed
/
qtw111
/
samples
/
mathglue.asm
< prev
next >
Wrap
Assembly Source File
|
1993-03-11
|
2KB
|
57 lines
; ---------------------------------------------------------------------
;
; MathGlue.Asm - Math Components App Glue - QuickTime for Windows
;
; Version 1.0
;
; (c) 1988-1993 Apple Computer, Inc. All Rights Reserved.
;
; ---------------------------------------------------------------------
.MODEL SMALL, C
.386
.DATA
EXTERN lpfnQTComponentManager:DWORD ; pointer to CompMgr EntryPoint
.CODE
ASSUME DS: DGROUP
;///////////////////////////////////////////////////////////////////////////
; ComponentFunc Macro
; Define code used for each glue function
ComponentFunc MACRO sel:req, name:req
name PROC FAR ; define as public far function
push ds ; save current DS
mov bx, sel ; load function selector
mov ax, 2 ; generic component ID
call DWORD PTR lpfnQTComponentManager ; call the Component Manager
pop ds ; restore DS
ret ; far return
name ENDP
EVEN ; make sure aligned on even boundary
ENDM
;///////////////////////////////////////////////////////////////////////////
; Add Glue Functions
; Including functions expands macro into function definitions
EVEN ; make sure aligned on even boundary
INCLUDE addfs.inc
;///////////////////////////////////////////////////////////////////////////
; Sum Glue Functions
; Including functions expands macro into function definitions
EVEN ; make sure aligned on even boundary
INCLUDE sumfs.inc
END